package de.greenrobot.daoexample.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by hy on 2015/5/29.
 */
public class DetailComment implements Serializable {
    private String content;
    private String ctime;
    private String id;
    private String uid;
    private String replyCotent;
    private int type;
    private int ding_num;
    private String uname;
    private String avatar;
    private boolean have_ding = false;
    private boolean is_end = false;
    private List<AtUser> at_users = new ArrayList<>();
    private List<Role> roles = new ArrayList<>();
    private List<Multi> multi = new ArrayList<>();
    private List<DetailComment> comments = new ArrayList<>();
    private int comments_count;
    private String replyedName;
    private Timeline post;

    public boolean isHave_ding() {
        return have_ding;
    }

    public boolean is_end() {
        return is_end;
    }

    public void setHave_ding(boolean have_ding) {
        this.have_ding = have_ding;
    }

    public void setIs_end(boolean is_end) {
        this.is_end = is_end;
    }

    public String getContent() {
        return content;
    }

    public String getCtime() {
        return ctime;
    }

    public String getId() {
        return id;
    }

    public String getUid() {
        return uid;
    }

    public String getReplyCotent() {
        return replyCotent;
    }

    public int getType() {
        return type;
    }

    public int getDing_num() {
        return ding_num;
    }

    public String getUname() {
        return uname;
    }

    public String getAvatar() {
        return avatar;
    }

    public Boolean getHave_ding() {
        return have_ding;
    }

    public List<AtUser> getAt_users() {
        return at_users;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setReplyCotent(String replyCotent) {
        this.replyCotent = replyCotent;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setDing_num(int ding_num) {
        this.ding_num = ding_num;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setHave_ding(Boolean have_ding) {
        this.have_ding = have_ding;
    }

    public void setAt_users(List<AtUser> at_users) {
        this.at_users = at_users;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public List<DetailComment> getComments() {
        return comments;
    }

    public void setComments(List<DetailComment> comments) {
        this.comments = comments;
    }

    public int getComments_count() {
        return comments_count;
    }

    public void setComments_count(int comments_count) {
        this.comments_count = comments_count;
    }

    public String getReplyedName() {
        return replyedName;
    }

    public void setReplyedName(String replyedName) {
        this.replyedName = replyedName;
    }

    public Timeline getPost() {
        return post;
    }

    public void setPost(Timeline post) {
        this.post = post;
    }

    public List<Multi> getMulti() {
        return multi;
    }

    public void setMulti(List<Multi> multi) {
        this.multi = multi;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        DetailComment that = (DetailComment) o;

        return id.equals(that.id);

    }

    @Override
    public int hashCode() {
        return id.hashCode();
    }
}
